import { tokenTableName } from '@/config'

export function getToken() {
 try {
 	const value = uni.getStorageSync(tokenTableName);
 	if (value) {
 		return value
 	}
 } catch (e) {
 	console.log("获取token异常")
 }
}

export function setToken(token) {
  try {
  	uni.setStorageSync(tokenTableName, token);
  } catch (e) {
  	console.log("设置token异常")
  }
}

export function removeToken() {
	try {
		uni.removeStorageSync(tokenTableName);
	} catch (e) {
	}
}